package com.wnxy.admin.common.handler;

import com.wnxy.admin.common.IErrorCode;

/*
*  判断工具封装类
* */
public class Asserts {
    public static void fail(Boolean condition, IErrorCode iErrorCode) {
        if(condition) {
            throw new BusinessException(iErrorCode);
        }
    }
}
